from typing import List

from pydantic import BaseModel


class VoiceModel(BaseModel):
    voice: str
    style: str= ''
    text: str
    rate: int=0
    pitch: int=0


class SpeakModel(BaseModel):
    voice: List[VoiceModel]


class SupportTable(BaseModel):
    voice: str
    name: str=''
    style:List[str]


class RoleConfig(BaseModel):
    voice: str
    style: str = ''
    rate: int = 0
    pitch: int = 0

class ListItem(BaseModel):
    role: str
    text: str